home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / COMMUNIC / BULLETIN / H172.ZIP / SAPPHC.ZIP / ACCOUNT.BAT next >
DOS Batch File  |  1993-09-12  |  1KB  |  33 lines

  1. @ECHO OFF
  2.  
  3. REM ┌────────────────────────────────────────────────────────────────────┐
  4. REM │ Sample event batch file for Sapphire Accounting -- see ACCOUNT.DOC │
  5. REM │ You need Pinnacle Software's Parse-O-Matic to run this batch file! │
  6. REM └────────────────────────────────────────────────────────────────────┘
  7.  
  8. REM ──────────────────────────────────────────────────────────────────────
  9. REM Run extraction procedure
  10. REM
  11.     POM ACCOUNT.POM SAPPHIRE.ACC ACCOUNT.TMP
  12.     IF ERRORLEVEL 1 GOTO ERR
  13.  
  14. REM ──────────────────────────────────────────────────────────────────────
  15. REM Run import rocedure
  16. REM (For this example, we use the SEE program to view the import file)
  17. REM
  18.     SEE ACCOUNT.TMP
  19.     GOTO SAVE
  20.  
  21. REM ──────────────────────────────────────────────────────────────────────
  22. REM Error trap
  23. REM
  24. :ERR
  25.     COPY ACC.ERR+SAPPHIRE.ACC ACC.ERR
  26.  
  27. REM ──────────────────────────────────────────────────────────────────────
  28. REM Make backup copy of data, thereby clearing processed data
  29. REM
  30. :SAVE
  31.     IF EXIST SAPPHIRE.AC$ DEL SAPPHIRE.AC$
  32.     RENAME SAPPHIRE.ACC SAPPHIRE.AC$
  33.